<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Project_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-project_id" data-field="title" data-rule="required" data-source="project/index" class="form-control selectpage" name="row[project_id]" type="text" value="{$row.project_id|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Customer_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-customer_id" data-rule="required" data-source="customer/index" class="form-control selectpage" name="row[customer_id]" type="text" value="{$row.customer_id|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Contract_number')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-contract_number" data-rule="required" class="form-control" name="row[contract_number]" type="text" value="{$row.contract_number|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Contract_money')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-contract_money" data-rule="required" class="form-control" step="0.01" name="row[contract_money]" type="number" value="{$row.contract_money|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Payment_method')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-payment_method" data-rule="required" class="form-control" name="row[payment_method]" type="text" value="{$row.payment_method|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Transfer_method')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-transfer_method" data-rule="required" class="form-control" name="row[transfer_method]" type="text" value="{$row.transfer_method|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Invoice_images')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-invoice_images" class="form-control" size="50" name="row[invoice_images]" type="textarea" value="{$row.invoice_images|htmlentities}">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="faupload-invoice_images" class="btn btn-danger faupload" data-input-id="c-invoice_images" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="true" data-preview-id="p-invoice_images"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button type="button" id="fachoose-invoice_images" class="btn btn-primary fachoose" data-input-id="c-invoice_images" data-mimetype="image/*" data-multiple="true"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-invoice_images"></span>
            </div>
            <ul class="row list-inline faupload-preview" id="p-invoice_images"></ul>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Signing_time')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-signing_time" data-rule="required" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[signing_time]" type="text" value="{:$row.signing_time?datetime($row.signing_time):''}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Remarks')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-remarks" class="form-control " rows="5" name="row[remarks]" cols="50">{$row.remarks|htmlentities}</textarea>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('A_name')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-a_name" class="form-control" name="row[a_name]" type="text" value="{$row.a_name|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('A_phone')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-a_phone" class="form-control" name="row[a_phone]" type="text" value="{$row.a_phone|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('A_id_card')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-a_id_card" class="form-control" name="row[a_id_card]" type="text" value="{$row.a_id_card|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('A_company_name')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-a_company_name" class="form-control" name="row[a_company_name]" type="text" value="{$row.a_company_name|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('A_company_social_code')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-a_company_social_code" class="form-control" name="row[a_company_social_code]" type="text" value="{$row.a_company_social_code|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('A_company_address')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-a_company_address" class="form-control" name="row[a_company_address]" type="text" value="{$row.a_company_address|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('A_telephone')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-a_telephone" class="form-control" name="row[a_telephone]" type="text" value="{$row.a_telephone|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('A_fax')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-a_fax" class="form-control" name="row[a_fax]" type="text" value="{$row.a_fax|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('B_name')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-b_name" class="form-control" name="row[b_name]" type="text" value="{$row.b_name|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('B_phone')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-b_phone" class="form-control" name="row[b_phone]" type="text" value="{$row.b_phone|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('B_id_card')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-b_id_card" class="form-control" name="row[b_id_card]" type="text" value="{$row.b_id_card|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('B_company_name')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-b_company_name" class="form-control" name="row[b_company_name]" type="text" value="{$row.b_company_name|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('B_company_social_code')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-b_company_social_code" class="form-control" name="row[b_company_social_code]" type="text" value="{$row.b_company_social_code|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('B_company_address')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-b_company_address" class="form-control" name="row[b_company_address]" type="text" value="{$row.b_company_address|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('B_telephone')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-b_telephone" class="form-control" name="row[b_telephone]" type="text" value="{$row.b_telephone|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('B_fax')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-b_fax" class="form-control" name="row[b_fax]" type="text" value="{$row.b_fax|htmlentities}">
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
